package com.nsl.my_youlai.bbu2.model.bo.bbu.instances;

import com.nsl.my_youlai.bbu2.enums.BbuModelEnum;
import com.nsl.my_youlai.bbu2.enums.NetGenerationEnum;
import com.nsl.my_youlai.bbu2.enums.VendorEnum2;
import com.nsl.my_youlai.bbu2.model.bo.bbu.Bbu2;
import com.nsl.my_youlai.bbu2.model.bo.bbu.rules.BbuHw4g3900SlotRules;

public class BbuHw4g3910 extends Bbu2 {
//    private BbuHw4g3900SlotRules rules;

    static private String baseBoardSlots="0,1,2,3,4,5";
    static private String controlBoardSlots="6,7";
    static private String powerBoardSlots="18,19";

    public BbuHw4g3910() {
        super();
        init();
    }

    public BbuHw4g3910(int excelRowIndex, VendorEnum2 vendor, BbuModelEnum bbuModelEnum, Integer nodeId) {
        super(excelRowIndex,vendor,bbuModelEnum,nodeId,baseBoardSlots,controlBoardSlots,powerBoardSlots);
        init();
    }


    @Override
    public boolean equals(Object o){
        return super.equals(o);
    }


    private void init(){
        this.setVendor(VendorEnum2.HUA_WEI);
        this.setBbuModelEnum(BbuModelEnum.BBU_3910);
        BbuHw4g3900SlotRules rules=new BbuHw4g3900SlotRules(
                VendorEnum2.HUA_WEI,
                1,
                new NetGenerationEnum[]{NetGenerationEnum.G4},
                baseBoardSlots,
                controlBoardSlots,
                powerBoardSlots
        );
        this.setSlotRules(rules);
    }

    @Override
    public void integrateBoards(Bbu2 sourceBbu, String cutoffsStringIndex) {
        super.integrateBoards(sourceBbu,cutoffsStringIndex,baseBoardSlots,controlBoardSlots,powerBoardSlots);
    }

    public void bbuCheck(){
        //slot配合检查
        //最小配置检查
        for (int i = 0; i < this.soltIndexList.size(); i++) {
            Integer slotIndex=this.soltIndexList.get(i);

        }
        //主控混插检查

        //基带数量过多检查

        //电源能力检查

        //垮tac

    }

    public void checkMiniConfig(){

    }

    public void checkBoardSlotMatch(){

    }

    public void checkOther(){

    }
}
